const proxy = require("http-proxy-middleware");

module.exports = function(app) {
  app.use(proxy("/api", { 
       target: "http://127.0.0.1:3100",
       secure: false,
       changeOrigin: true,
       pathRewrite: {
        "^/api": "/"
       }
  
    }));
};